<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="./Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="./Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link rel="shortcut icon" href="./Public/Admin/Flat/img/favicon.ico">
		<script type="text/javascript" src="Public/uploadify/jquery-1.8.2.min.js"></script>
		<script type="text/javascript" src="Public/uploadify/jquery.uploadify.min.js"></script>
		<link rel="stylesheet" type="text/css" href="Public/uploadify/uploadify.css">
		<!--		载入百度编辑器-->
		<script type="text/javascript" charset="utf-8" src="Public/Admin/ueditor1_4_3/ueditor.config.js"></script>
		<script type="text/javascript" charset="utf-8" src="Public/Admin/ueditor1_4_3/ueditor.all.min.js"> </script>
		<script type="text/javascript" charset="utf-8" src="Public/Admin/ueditor1_4_3/lang/zh-cn/zh-cn.js"></script>
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
	<div class="container-fluid">
		<div class="row-fluid">
			<div class="span12">

<!--				<if condition="$is_show">-->
			<form action="" method='post'>
<!--				</if>-->
				<table class='table table-bordered table-hover'>
					<tr>
						<th>货品ID</th>
						{{foreach from="$typeData" value="$u"}}
							<th>{{$u['taname']}}</th>
						{{endforeach}}
						<th>库存</th>
						<th>货号</th>
					</tr>

					<!-- 如果已添加数目小于可能情况数目，才出现添加货品的输入框 -->
<!--					<if condition="$is_show">-->
						<tr class="info">
							<td>编辑货品</td>
							{{foreach from="$typeData" value="$u"}}
								<td>
									<select name="cogroupid[]">
										<option value="0">-请选择-</option>
										{{foreach from="$u['value']" value="$v"}}
											<option value="{{$v['coattid']}}" {{foreach from="$oldcoliData['cogroupid']" value="$value"}}{{if value="$v['coattid']==$value" }}selected{{endif}}{{endforeach}}>{{$v['coattvalue']}}</option>
										{{endforeach}}
									</select>
								</td>
							{{endforeach}}
							</foreach>
							<td>
								<input type="text" name='colnum' value="{{$oldcoliData['colnum']}}"/>
							</td>
							<td>
								<input type="text" name='colstock' value="{{$oldcoliData['colstock']}}" />
							</td>
						</tr>
<!--					</if>-->
				</table>
<!--				<if condition="$is_show">-->
					<input type="hidden" name='colid' value="{{$_GET['colid']}}"/>
					<input type="submit" value='保存修改' class="btn btn-primary"/>
			</form>
<!--				</if>-->

			</div>
		</div>
	</div>


	</body>
</html>
